Skip to content

fix(docs): remove stale reference/http-api nav entry (#719)#767

Open
ZhYGuoL wants to merge 2 commits into
vercel:mainfrom
ZhYGuoL:fix/docs-remove-stale-http-api-nav
Open

fix(docs): remove stale reference/http-api nav entry (#719)#767
ZhYGuoL wants to merge 2 commits into
vercel:mainfrom
ZhYGuoL:fix/docs-remove-stale-http-api-nav

Conversation

@ZhYGuoL

@ZhYGuoL ZhYGuoL commented Jul 14, 2026

Copy link
Copy Markdown

docs/reference/meta.json listed http-api in its pages array, but no docs/reference/http-api.md/.mdx exists, so the sidebar nav dangled at a page that never renders. docs:check passed anyway because it only checked the forward direction (every file is reachable from nav), never the reverse.

What changed

  • Remove the stale http-api slug from docs/reference/meta.json#pages, preserving the order of the remaining pages (typescript-api, cli, project-layout).
  • Add a reverse-direction check in scripts/check-docs.mjs: every meta.json#pages slug must resolve to a real .md/.mdx file, folder index, or content folder. It mirrors isCoveredByNav() so legitimate folder references (reference, guides/client, channels, ...) are not false positives.

How I verified

  • Before: node ./scripts/check-docs.mjs exits 0 with the stale slug present; the dangling entry goes undetected.
  • After: pnpm docs:check passes (exit 0), 75 files validated. Temporarily restoring http-api trips the new check, which reports docs/reference/http-api (meta.json#pages) as a dangling sidebar link and exits 1.
  • Tests: the new reverse-direction assertion in scripts/check-docs.mjs is the regression guard (fails with the stale slug present, passes without it). Full local green: pnpm lint, pnpm typecheck, pnpm test:unit (4683 passed, 1 skipped), pnpm docs:check.

Closes #719.

docs/reference/meta.json listed "http-api" in pages, but no
docs/reference/http-api.md/.mdx file exists, so the sidebar nav pointed
at a page that never renders. check-docs.mjs only validated the forward
direction (every markdown file is reachable from nav), so the dangling
entry passed CI.

Remove the stale slug and add a reverse-direction check in
scripts/check-docs.mjs: any meta.json#pages slug that resolves to no
.md/.mdx file, folder index, or content folder now fails docs:check.

Signed-off-by: ZhYGuoL <[email protected]>
@vercel

vercel Bot commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

@ZhYGuoL is attempting to deploy a commit to the Vercel Team on Vercel.

A member of the Team first needs to authorize it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

docs: remove or restore missing reference/http-api navigation page

1 participant